package com.qingge.springboot.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qingge.springboot.entity.Stu;
import com.qingge.springboot.mapper.StuMapper;
import com.qingge.springboot.service.IStuService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author xyc
 * @since 2022-04-12
 */
@Service
public class StuServiceImpl extends ServiceImpl<StuMapper, Stu> implements IStuService {


    @Resource
    private StuMapper stuMapper;

    @Override
    public Page<Stu> findPage(Page<Stu> page, String name, String sex, String college, String grade) {
        return stuMapper.findPage(page, name, sex, college, grade);
    }

    @Override
    public Integer getStudentCount() {
        return stuMapper.getStudentCount();
    }
}
